public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.display();
        myArrayList.add(7);
        myArrayList.display();
        boolean b = myArrayList.contains(3);
        int c = myArrayList.indexOf(4);
        System.out.println(b);
        System.out.println(c);
    }
}
